Results 1 to 7 of 7

Thread: A 'Strange' Problem With Buttons...

  1. #1
    Join Date
    Nov 2011
    Posts
    12
    Thanked 5 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default A 'Strange' Problem With Buttons...

    It seems as if my button control cannot be clicked at some areas of it.
    Here's a picture: Untitled.png(http://img856.imageshack.us/img856/5981/48366364.png)

    I've marked the area where one CANNOT press the button, with a yellow square.
    These buttons are distinct from all other controls - meaning that they are NOT overlapped.
    I have made sure to set the Icon size to EXACTLY the same as the button size, just in case.

    Now, here's the part i get a bit confused. If i move my buttons(both of them) to another place than their current location(ie: the bottom of my app's Z-Y coordinates) this problem doesn't occur.
    I've also tested this on other PC's(though, only on Windows 7, 64bit..)

    If anyone has any idea what might cause this 'funny' behavior, I'd appreciate an explanation - and possibly some help to fix it.

  2. #2
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: A 'Strange' Problem With Buttons...

    Just an idea: If that problem only occurs on the current location, perhaps there are some invisible objects above them, blocking the presses. You could try raising the buttons above everything else (raise()).

  3. #3
    Join Date
    Nov 2011
    Posts
    12
    Thanked 5 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: A 'Strange' Problem With Buttons...

    Quote Originally Posted by mvuori View Post
    Just an idea: If that problem only occurs on the current location, perhaps there are some invisible objects above them, blocking the presses. You could try raising the buttons above everything else (raise()).
    I've checked the side bar were all my UI objects are listed. It only lists the buttons and the listwidget, as seen on the picture.
    No "invisible" objects..

  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: A 'Strange' Problem With Buttons...

    Please provide a minimal compilable example reproducing the problem.
    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
    Nov 2011
    Posts
    12
    Thanked 5 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: A 'Strange' Problem With Buttons...

    And by that, how am i going to reproduce a problem that i do not know the origin of? If i knew the origin i wouldn't have the problem in the first place.

  6. #6
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: A 'Strange' Problem With Buttons...

    Just post a code, that we can compile and test, which shows this issue.

  7. #7
    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: A 'Strange' Problem With Buttons...

    Quote Originally Posted by Sia View Post
    And by that, how am i going to reproduce a problem that i do not know the origin of? If i knew the origin i wouldn't have the problem in the first place.
    Either start from scratch and add code bit by bit until it reveals similar issues or start stripping your current code until the problem goes away and then undo the last step. We're not trueseers, we can't tell you what's wrong with your code just by looking at a picture with two yellow rectangles marked, you know I know there are people who can tell you have problems with your toes only by looking into your eyes, but I'm not one of them
    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. Strange problem
    By wirasto in forum Qt Programming
    Replies: 3
    Last Post: 27th December 2009, 12:24
  2. Strange problem
    By pavel in forum Newbie
    Replies: 4
    Last Post: 18th December 2009, 22:46
  3. Very Strange problem
    By dreamer in forum Qt Programming
    Replies: 1
    Last Post: 30th April 2008, 10:20
  4. Custom buttons problem
    By giotto in forum Qt Programming
    Replies: 7
    Last Post: 7th February 2008, 22:56
  5. Sorry another problem. Mouse Buttons.
    By Zephro in forum Qt Programming
    Replies: 14
    Last Post: 24th February 2006, 17:08

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.