Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: Refer to an interface object name with a variable (string)

  1. #21
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Refer to an interface object name with a variable (string)

    Does each page widget have a proper layout?
    Is the stack widget part of a layout?

    Cheers,
    _

  2. #22
    Join Date
    Jan 2015
    Posts
    22
    Thanks
    18
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Refer to an interface object name with a variable (string)

    The size of each page is the same, 711x366.

    stackedWidget is part of centralWidget.

    I just measured the app window in pixels, and it looks that something is reducing the pages (except the first page, like I said) to have 640 pixels of width.
    Not sure if I was clear, but the first page is always the selected one when compiling the program - so, it is gonna be the only page that is fully displayed.

    Here is centralWidget configuration:
    centralwidget.jpg

    And here is MainWindow (centralWidget is under MainWindow):
    mainwindow.jpg


    Edited: I just tried bringing stackedWidget to front, didn't work.

    Edited #2: I also tried to change the app width to 1000 px, it is still cutting everything inside the window to 640.
    Last edited by guiismiti; 31st January 2015 at 15:58.

  3. #23
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Refer to an interface object name with a variable (string)

    You were asked a simple question -- whether your pages have a layout set on them. If you do not know what a layout is then just say so or look it up in the docs.

    Layout Management
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #24
    Join Date
    Jan 2015
    Posts
    22
    Thanks
    18
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Refer to an interface object name with a variable (string)

    no
    10char10char

  5. #25
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Refer to an interface object name with a variable (string)

    Quote Originally Posted by guiismiti View Post
    no
    Now you know your problem and you can fix it easily by applying a layout to each page and also putting your stacked widget in one.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. The following user says thank you to wysota for this useful post:

    guiismiti (31st January 2015)

Similar Threads

  1. How define an interface for a Qt object
    By hubbobubbo in forum Qt Programming
    Replies: 7
    Last Post: 24th August 2013, 12:37
  2. Getting std::string object from QString object ( qt3)
    By joseph in forum Qt Programming
    Replies: 11
    Last Post: 28th March 2013, 20:09
  3. how to concatenate a variable with a string
    By doforumda in forum Newbie
    Replies: 1
    Last Post: 25th August 2010, 08:34
  4. Get value for variable name defined as string
    By webquinty in forum General Programming
    Replies: 2
    Last Post: 18th November 2009, 10:30
  5. (ActiveQt) Invoking interface from COM object
    By mridulgandhi in forum Qt Programming
    Replies: 4
    Last Post: 11th October 2009, 20:29

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.