跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • BusyIndicator stops animating

    Unsolved
    2
    0 評價
    2 貼文
    366 瀏覽
    C
    I've worked around this by putting the Popup in a separate qml file and using a Loader to get a fresh Popup every time I want to display it. But it still seems broken that a Popup can't be open/closed multiple times and have the BusyIndicator just continue to work.
  • How to pass the 'pressed' mouse event to another object which is created only after press event triggered

    Unsolved
    1
    0 評價
    1 貼文
    140 瀏覽
    尚無回覆
  • Qt no service found for - "org.qt-project. qt.mediaplayer "

    Solved
    2
    0 評價
    2 貼文
    217 瀏覽
    SGaistS
    Hi, Are you sure that the backend plugins are built ? Did you set them up properly in your .pro file ?
  • QtQuick bug in qt6.2 - TableView has no selectionModel property in Quick 2.2

    Unsolved
    1
    0 評價
    1 貼文
    171 瀏覽
    尚無回覆
  • How to render only in a single QQuickItem?

    Unsolved
    1
    0 評價
    1 貼文
    220 瀏覽
    尚無回覆
  • SpinBox showing a frame

    Unsolved
    3
    0 評價
    3 貼文
    287 瀏覽
    A
    Anyone, please?
  • custom minimize button in qml

    Solved
    2
    0 評價
    2 貼文
    1k 瀏覽
    raven-worxR
    @qAminzzz https://doc.qt.io/qt-5/qml-qtquick-window-window.html#showMinimized-method
  • customizing QTabWidget

    Unsolved
    9
    0 評價
    9 貼文
    3k 瀏覽
    M
    auto cutDir = QCoreApplication::applicationDirPath(); auto resFile = cutDir + "/TabWidget.css"; QFile cssFile(resFile); if( cssFile.open(QFile::ReadOnly)) { QString styleSheet = QLatin1String(cssFile.readAll()); ui->tabWidget->setStyleSheet(styleSheet); cssFile.close(); } auto tab1 = new QTabBar; auto tab2 = new QTabBar; auto tab3= new QTabBar; /*tabLayout->addWidget(btn); ui->tabWidget->setLayout(tabLayout);*/ // tab1->setObjectName(QStringLiteral("TabName")); ui->tabWidget->setTabsClosable(true); ui->tabWidget->addTab(tab1,QStringLiteral("网易中国")); ui->tabWidget->addTab(tab2,QStringLiteral("百度")); ui->tabWidget->addTab(tab3,QStringLiteral("爱奇艺")); and the file TabWidget.css is below: QTabWidget::pane { /* The tab widget frame */ border-top: 1px solid #C2C7CB; padding:20px; } QTabWidget::tab-bar { left: 2px; /* move to the right by 5px */ } QTabWidget{ background-color:#ffffff; } /* Style the tab using the tab sub-control. Note that it reads QTabBar not QTabWidget */ QTabBar::tab { /*margin:0px;/0 这里可以让tab 跟 TabWidget连成一片/ margin-left:4px; padding:4px; border-top-left-radius: 6px; border-top-right-radius: 6px; background:#ffffff; border:1px solid #d9d9d9; border-bottom:0px none; min-height:20px; } QTabBar::tab:selected { border-color: #9B9B9B; border-bottom-color: #00ffff; /* same as pane color */ margin-bottom:-1px; }
  • signal action only specific object

    Unsolved
    1
    0 評價
    1 貼文
    143 瀏覽
    尚無回覆
  • How to create a Calendar with newer QtQuick?

    Unsolved
    3
    0 評價
    3 貼文
    480 瀏覽
    KroMignonK
    @markusme said in How to create a Calendar with newer QtQuick?: How do I create a Calendar in newer (2.x) version of QtQuick?? Fresh install with Qt version 5.15 and nothing online works. Just huge amounts of old and outdated tutorials on the Qt website. Just to be sure, I hope your are talking about Qt Kit version not Qt Version used to build Qt Creator (like the screenshot posted by @Markkyboy ) Did you select the right kit in Qt Maintenance tool? For example for Windows 32 bits: [image: b24febf8-59fe-4cbb-a66e-c3ef8e5f06f1.png]
  • QQuickPaintedItem not update whole area.

    Solved qquickpaintedit qml qquickitem update
    2
    0 評價
    2 貼文
    631 瀏覽
    M
    I resolved it. It because of RenderTarget. I rollback it to default value.
  • Help with QML GridLayout RowSpan and ColumnSpan

    Unsolved
    5
    0 評價
    5 貼文
    732 瀏覽
    P
    @ndias Thank you, I've been beating my head! Don't know why the original doesn't work but I no longer care.
  • Font size mystery and the associated problems trying to create a GUI

    Unsolved
    1
    0 評價
    1 貼文
    127 瀏覽
    尚無回覆
  • Quick, hopefully simple question. Open files list. How to get it back?

    Solved
    4
    0 評價
    4 貼文
    420 瀏覽
    sierdzioS
    @VFCraig said in Quick, hopefully simple question. Open files list. How to get it back?: Many thanks. Thought that was, as the suggestion implies, for splitting. As in giving me 2 views of the same file so I can look at different relevant sections without scrolling back and forth. Didn't think it meant opening panes with different functionality. You can choose to display the same thing if you want to. Click on the "up down" arrow on the left - there you can choose what will be displayed inside of that panel.
  • How to use the `Default` theme on Android

    Solved
    4
    0 評價
    4 貼文
    661 瀏覽
    Ben SB
    I was able to get it to work. I did have to switch to Qt6. I also needed to add a qtquickcontrols2.conf file to my project (e.g. in the qml.qrc file), and add this in: [Controls] Style=Basic
  • Custom ChartView

    已移動 Unsolved
    4
    0 評價
    4 貼文
    374 瀏覽
    fcarneyF
    Look here. Maybe this one would work? Just make it 1 bar and make that fill the width?
  • PathView with few items change the positions

    Unsolved
    1
    0 評價
    1 貼文
    155 瀏覽
    尚無回覆
  • Enable ListView Interactive in ScrollView

    Unsolved
    3
    0 評價
    3 貼文
    342 瀏覽
    Q
    @SGaist this is my code: ListView { id: leftFrameListView x: 10 spacing: 1 model: 10 interactive: true // Does not work delegate: Rectangle { id: listViewRect x: 20 width: leftFrameListView.width - 40 height: 60 radius: 15 color: "white" } }
  • hide scrollview mark

    Unsolved
    1
    0 評價
    1 貼文
    147 瀏覽
    尚無回覆
  • change default application toolbar color in qml

    Unsolved
    5
    0 評價
    5 貼文
    471 瀏覽
    Q
    @Markkyboy i know radius, now i want to use radius in applicationwindow