Results 1 to 10 of 10

Thread: QLineEdit setAlignment doesn't set the Vertical alignment

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,342
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: QLineEdit setAlignment doesn't set the Vertical alignment

    Or, if I right click and choose "go to definition" I get this type of error:
    Do you have the Qt VS Tools extension installed? I think that adds the paths to Qt sources to your Visual Studio configuration. When I right-click on "QString" in my source code, for example, and select "Peek Definition" it goes right to the qstring.h header file.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. #2

    Default Re: QLineEdit setAlignment doesn't set the Vertical alignment

    Quote Originally Posted by d_stranz View Post
    Do you have the Qt VS Tools extension installed? I think that adds the paths to Qt sources to your Visual Studio configuration. When I right-click on "QString" in my source code, for example, and select "Peek Definition" it goes right to the qstring.h header file.
    Yes, and it does that for me too, but that's the declaration of most stuff, not the definition/implementation (the thing that usually resides in a .cpp file).
    You've suggested to rewrite the paintEvent() function, try and reach the body of that function through VS, you'll likely get my same error.

    Immagine 2025-01-24 042741.png
    Last edited by Marcus Aseth; 24th January 2025 at 04:29.

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,342
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: QLineEdit setAlignment doesn't set the Vertical alignment

    Yes, you're right. Even if I add the absolute path to the directory containing qstring.cpp to the VC++ Directories in project settings, it still goes only to the header file. I've asked online before and I don't think there is any way to add source code browsing unless the files are part of your project "solution".
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. QLineEdit doesn't recive any character
    By nemaider in forum Newbie
    Replies: 1
    Last Post: 2nd June 2021, 10:45
  2. Replies: 0
    Last Post: 5th September 2019, 18:01
  3. Replies: 2
    Last Post: 9th July 2016, 11:59
  4. Replies: 1
    Last Post: 11th March 2014, 12:20
  5. Replies: 0
    Last Post: 24th October 2011, 13:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.