Results 1 to 8 of 8

Thread: QDateEdit popup Calendar ::dropdown question

  1. #1
    Join Date
    Sep 2014
    Posts
    18
    Thanks
    2
    Qt products
    Platforms
    Unix/X11 Windows

    Question QDateEdit popup Calendar ::dropdown question

    Hi everyone!
    I use QDateEdit with CalendarPopup.
    When I try to style it, I use this:
    Qt Code:
    1. QDateEdit::drop-down {subcontrol-origin: padding; subcontrol-position: top right; width: 300px; background: black;}
    To copy to clipboard, switch view to plain text mode 
    Question: the background color is working perfectly... why "width" option doesn't do anything?

  2. #2
    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: QDateEdit popup Calendar ::dropdown question

    Apparently it is not supported.
    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.


  3. #3
    Join Date
    Sep 2014
    Posts
    18
    Thanks
    2
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: QDateEdit popup Calendar ::dropdown question

    Quote Originally Posted by wysota View Post
    Apparently it is not supported.
    Qt 4.8.4
    PyQt 4.9.6

    why?
    it should work

    Ok... then how I can change the width of drop-down button from QDateEdit widget?

  4. #4
    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: QDateEdit popup Calendar ::dropdown question

    Where in the docs does it say it "should work"? Qt doesn't implement full CSS specs for all controls and subcontrols.
    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.


  5. #5
    Join Date
    Sep 2014
    Posts
    18
    Thanks
    2
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: QDateEdit popup Calendar ::dropdown question

    Quote Originally Posted by wysota View Post
    Where in the docs does it say it "should work"?
    Even if you're right, there must be a way to change width... or else it's awful

  6. #6
    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: QDateEdit popup Calendar ::dropdown question

    Directly changing the width maybe?
    Or setting a minimum width for it?

    Cheers,
    _

  7. #7
    Join Date
    Sep 2014
    Posts
    18
    Thanks
    2
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: QDateEdit popup Calendar ::dropdown question

    Quote Originally Posted by wysota View Post
    Where in the docs does it say it "should work"? Qt doesn't implement full CSS specs for all controls and subcontrols.
    Ok, well this line from here
    Qt Code:
    1. QComboBox::drop-down {subcontrol-origin: padding; subcontrol-position: top right; width: 15px;
    To copy to clipboard, switch view to plain text mode 
    doesn't work either.
    It seems like width options for combobox cannot be styled with css

  8. #8
    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: QDateEdit popup Calendar ::dropdown question

    Not everything can be done with CSS. You will have to get your hands dirty with C++.
    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.


Similar Threads

  1. Syncing Android Calendar with our own calendar?
    By Awareness in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 16th February 2014, 19:17
  2. Replies: 12
    Last Post: 1st May 2011, 11:38
  3. Replies: 3
    Last Post: 17th May 2009, 20:17
  4. Replies: 6
    Last Post: 4th February 2009, 07:46
  5. QDateEdit read-only with calendar not r.o.
    By lauranger in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2007, 17:14

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.