Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.3k Topics 455.8k Posts
  • How to pick the pixel color of bmp file using a mouse cursor's position?

    2
    0 Votes
    2 Posts
    942 Views
    T
    Heya If I were you I would use qt event system. Basically, you need to use event filter in parent widget or reimplement pixmap. Then, when you have relative x and y of click it's not an issue to find QColor on it's pixel
  • How to put lable on another.

    2
    0 Votes
    2 Posts
    669 Views
    T
    Heya http://qt-project.org/doc/qt-5.0/qtwidgets/qwidget.html#raise
  • How to determine what has been deleted in a QTextDocument?

    2
    0 Votes
    2 Posts
    697 Views
    T
    Heya While I was working with QTextDocument, I experienced the same problem. In this case I would like to reimplement QTextDocument and handle all those changes with protected methods. I am pretty sure there is a good solution of this problem in this case.
  • Tab Order

    5
    0 Votes
    5 Posts
    2k Views
    M
    But Qt is not allowing me to give the TabOrder for the lables presented on the form. It is accepting except lables.
  • QElapsedTimer and QTimer strange behavior

    3
    0 Votes
    3 Posts
    4k Views
    S
    [quote author="JKSH" date="1372434688"]Windows does provide "multimedia timers" that are much more precise, but I doubt QTimer uses that.[/quote] Hi. I actually found some information posted by Netich on other forums that Qt indeed uses multimedia timers. In the Qt's 4.6.0 change-log on line 111 it states: " - QEventDispatcherWin32 (internal class) * Changed the threshold for using multimedia timers to 20ms (was 10ms)."
  • [CLOSED] Qtreeview multilevel child auto select

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to avoid movility on a QGraphicsItem when it's selected?

    1
    0 Votes
    1 Posts
    608 Views
    No one has replied
  • [Solved] Qt 5.1 statusbar character encoding bug

    5
    0 Votes
    5 Posts
    2k Views
    E
    [quote author="1+1=2" date="1374571527"] It means that the exec charset of your application is latin1! So you need to use QLatin1String or QString::fromLatin1() to convert the string from char* to QString.[/quote] Okay, so QString is using UTF-8 as default hence the need to use QString::fromLatin1() ... [quote author="1+1=2" date="1374571527"] Are your sure that: @ui->label->setText("éàêùç");@ works in your source code?[/quote] Nope, does not. This means that it's the Designer who does the conversion. I still don't know how the QtQuick part of my application does the conversion of units. Thanks for your help. EDIT : I know why the QtQuick part displays the accents : it takes its data from a XmlListModel and the XML file is encoded in UTF-8 :)
  • [Solved] Repaint a QML Scene (QQuickView)

    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    I'm glad to hear that. Please mark this thread as solved.
  • Problem with ListView dynamic height

    1
    0 Votes
    1 Posts
    905 Views
    No one has replied
  • Cannot write simple text to a text file

    7
    0 Votes
    7 Posts
    5k Views
    sierdzioS
    Please always wrap your code in '@' tags. Modifying your old posts will be a nice bonus, too :) As 1+1=2 said: take care about relative paths, they can be misleading at times.
  • Multiple views in multiple views in multiple views painting behaviour

    1
    0 Votes
    1 Posts
    518 Views
    No one has replied
  • Getting a lot of banding when playing video with a QGraphicsViewItem

    1
    0 Votes
    1 Posts
    730 Views
    No one has replied
  • QKeyEvent and last release event

    4
    0 Votes
    4 Posts
    1k Views
    D
    In Qt5.1/Windows XP, the result is: @ // press and hold the key pressEvent, isAutoRepeat = false releaseEvent, isAutoRepeat = true pressEvent, isAutoRepeat = true releaseEvent, isAutoRepeat = true pressEvent, isAutoRepeat = true releaseEvent, isAutoRepeat = true pressEvent, isAutoRepeat = true releaseEvent, isAutoRepeat = false @
  • Selecting QGraphicsItem by shape and not by boundingRect

    2
    0 Votes
    2 Posts
    1k Views
    A
    Override Function QPainterPath QGraphicsItem::shape() const.
  • Doubt about big application development

    4
    0 Votes
    4 Posts
    1k Views
    S
    I am not sure, because I am not using QML. I am more familiar with Qt/C++, but I would say yes: http://qt-project.org/doc/qt-5.0/qtquick/scenegraph-openglunderqml.html
  • Debugging a Protocol Network Error

    4
    0 Votes
    4 Posts
    4k Views
    M
    Thanks for suggestion reactive! I had the same issue and adding @http://@ helped me.
  • Floating tab widgets

    2
    0 Votes
    2 Posts
    2k Views
    B
    One way I see is to add custom 'make float' button for every tab. User could click such button to make the widget 'float', and she should have similar 'un-float' button in un-tabed widget too. However, you will not be able (using this solution) simply to drag such tab to make it 'floating', which would be ideal IMHO. I don't know if it's possible at all. See QTabWidget::tabBar and QTabBar::setTabButton for details.
  • Where is qt5 designer?

    3
    0 Votes
    3 Posts
    11k Views
    D
    Install this package: http://packages.ubuntu.com/raring/qttools5-dev
  • How to get qmlpuppet back?

    2
    0 Votes
    2 Posts
    1k Views
    D
    Hi, please note that, the Qt Creator 2.8 you download is build on Qt 4.8, while qml2puppet is depending on Qt 5.0, so it will be skipped. You should compile the qml2puppet tool by yourself using proper Qt version such as Qt5.1 if you need to use it. The source code of it is bundled with Qt Creator.